package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.PersonDeviceVerifyHistory;
import com.zhijian.medical.entity.vo.request.PersonDeviceVerifyHistorySearchVo;
import com.zhijian.medical.entity.vo.response.PersonDeviceVerifyHistoryVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PersonDeviceVerifyHistoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PersonDeviceVerifyHistory record);

    int insertSelective(PersonDeviceVerifyHistory record);

    PersonDeviceVerifyHistory selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PersonDeviceVerifyHistory record);

    int updateByPrimaryKey(PersonDeviceVerifyHistory record);

    int count(PersonDeviceVerifyHistorySearchVo personDeviceVerifyHistorySearchVo);

    List<PersonDeviceVerifyHistoryVo> selectList(PersonDeviceVerifyHistorySearchVo personDeviceVerifyHistorySearchVo);

    PersonDeviceVerifyHistoryVo selectVoById(Long id);

    int insertBatch(@Param("entities") List<PersonDeviceVerifyHistory> entities);

    /**
     * 查询出某天最新数据的code
     *
     * @return
     */
    String selectMaxCodeByDay(String day);
}